package middol.sys


import grails.rest.*
import grails.converters.*
import groovy.transform.CompileStatic
import middol.base.BaseController
import middol.result.ResultUtils
import middol.utils.DomainUtils

/**
* @Description:    组织信息
* @Author:         zhangjiayu@middol.com
* @CreateDate:     2020/9/25 15:36
* @Version:        1.0
*/
class OrgController extends BaseController<Org> {
	static responseFormats = ['json', 'xml']

    OrgController() {
        super(Org)
    }
    OrgDataService orgDataService
    OrgService orgService

    /**
     * 获取组织结构
     */
    def getOrgStructure(){
        def record = request.JSON
        render orgService.getOrgStructure(record) as JSON
    }
}
